<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core">

<h:head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
	<link rel="stylesheet" type="text/css" href="css/estilo.css"></link>
	<link rel="stylesheet" type="text/css" href="css/alterados.css"></link>
	<link rel="stylesheet" type="text/css"
		href="lib/bootstrap3/css/bootstrap.css"></link>
	<title>Editar Refrigeradores</title>
</h:head>
<h:body>
	<div id="header">
		<ui:insert name="header">
			<ui:include src="template/header.xhtml"></ui:include>
		</ui:insert>
	</div>
	<br></br>
	<br></br>
	<div class="container">
		<div class="row">
			<div class="col-md-12">

				<h:form>
					<p:messages id="messages" />
					<p:panelGrid columns="2" styleClass="modelo_cadastro">

						<p:outputLabel styleClass="titulo_entrada" />
						<p:inputText id="id" type="hidden"
							value="#{RefrigeradorMB.refrigerador.codModelo}" />

						<p:outputLabel for="descricao" value="Descrição:"
							styleClass="titulo_entrada" />
						<p:inputText id="descricao"
							value="#{RefrigeradorMB.refrigerador.desModelo}" />

						<p:outputLabel for="familia" value="Família"
							styleClass="titulo_entrada" />
						<p:selectOneMenu id="familia"
							value="#{RefrigeradorMB.refrigerador.codFamilia}"
							style="width:125px">
							<f:selectItem itemLabel="Selecionar" itemValue="" />
							<f:selectItem itemLabel="Vertical" itemValue="1" />
							<f:selectItem itemLabel="Horizontal" itemValue="2" />
							<f:selectItem itemLabel="Auto Serviço" itemValue="3" />
							<f:selectItem itemLabel="Ilha" itemValue="4" />
							<f:selectItem itemLabel="SMR" itemValue="5" />
						</p:selectOneMenu>
					</p:panelGrid>
					<br></br>
					<div class="botoes_principais">
						<p:commandButton value="Salvar"
							action="#{RefrigeradorMB.editarRefrigerador}" update="messages"
							icon="ui-icon-disk">
						</p:commandButton>
						<p:commandButton value="Cancelar" action="listar_Refrigerador"
							update="messages" icon="ui-icon-close">
						</p:commandButton>
					</div>
					<br></br>
				</h:form>
			</div>
		</div>
	</div>
</h:body>

</html>